package com.hckjsec.law.WebSocket;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class WebLawSocketMessage {
    private String userType;//用户类型
    private String type;//notice 提醒内容  sign 签字说明
    private String message;//内容
    private Long id;

    public WebLawSocketMessage() {
    }

    public WebLawSocketMessage(String message) {
        this.message = message;
    }

    public WebLawSocketMessage(String userType, String type, String message) {
        this.userType = userType;
        this.type = type;
        this.message = message;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userType", getUserType())
                .append("type", getType())
                .append("message", getMessage())
                .append("id", getId())
                .toString();
    }
}
